//  this library.
/// 做题数据
class CategoryRecordsModel {
  /// 做题数量
  int? dc;

  /// 错题数量
  int? ec;

  /// 收藏数量
  int? cc;

  /// 科目试题数量
  int? allCount;

  /// 科目今天做题数量
  int? todayCount;

  /// 完成试卷数
  int? finishPaper;

  /// 笔记数量
  int? noteCount;

  CategoryRecordsModel({
    this.dc,
    this.ec,
    this.cc,
    this.allCount,
    this.todayCount,
    this.finishPaper,
    this.noteCount,
  });

  CategoryRecordsModel.fromJson(Map<String, dynamic> json) {
    dc = json['dc'];
    ec = json['ec'];
    cc = json['cc'];
    allCount = json['allCount'];
    todayCount = json['todayCount'];
    finishPaper = json['finishPaper'];
    noteCount = json['noteCount'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['dc'] = dc;
    data['ec'] = ec;
    data['cc'] = cc;
    data['allCount'] = allCount;
    data['todayCount'] = todayCount;
    data['finishPaper'] = finishPaper;
    data['noteCount'] = noteCount;
    return data;
  }
}
